<template>
  <div class="longPic-container">
    <shaixuan :index=2></shaixuan>
    <longPic :list="list"></longPic>
  </div>
</template>

<script>
// item
import shaixuan from "@/components/item-shaixuan";
import longPic from "@/components/item-longPic";
import { getProjectList } from "@/api/miva";
export default {
  components: {
    longPic,
    shaixuan
  },
  data() {
    return {
      list: []
    };
  },
  async mounted() {
    this.$store.commit("search/TOOGEL_TABS", 2);
    await this.getProjectList();
  },
  methods: {
    async getProjectList() {
      const res = await getProjectList({type:2});
      this.list = res.data;
      console.log(this.list);
    }
  }
};
</script>

<style lang="less">
.longPic-container {
  // background: #ccc;
}
</style>